package com.practice.afIO006;

import java.io.Console;
import java.util.Scanner;

public class In {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        System.out.println("what is your name?");
        String name = in.nextLine();
        System.out.println("How old are you?");
        int age = in.nextInt();
        System.out.println("Hello, " + name + ". Next year, you'll be " + (age + 1));

        Console cons = System.console();
        String userName = cons.readLine("User name: ");
        char[] passwd = cons.readPassword("Password: ");
    }
}
